home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 June: Reference Library / Dev.CD Jun 99 RL Disk 1.toast / Technical Documentation / Develop / develop Issue 26 / develop Issue 26 code / SOM and ListPart / ListPart DR4 / Source / ListPartGlobals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-15  |  1.9 KB  |  105 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        ListPartGlobals.h
  3.  
  4.     Contains:    ListPart globals
  5.  
  6.     Written by:    Steve Smith
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9. */
  10.  
  11.  
  12. #ifndef _LISTPARTGLOBALS_
  13. #define _LISTPARTGLOBALS_
  14.  
  15. // -- OpenDoc --
  16.  
  17. #ifndef _ODTYPES_
  18. #include <ODTypes.h>
  19. #endif
  20.  
  21. #ifndef SOM_Module_OpenDoc_StdDefs_defined
  22. #include <StdDefs.h>
  23. #endif
  24.  
  25. #ifndef _ITEXT_
  26. #include <IText.h>
  27. #endif
  28.  
  29. // -- MacToolbox --
  30.  
  31. #ifndef __TYPES__
  32. #include <Types.h>
  33. #endif
  34.  
  35. #ifndef __QDOFFSCREEN__
  36. #include <QDOffScreen.h>
  37. #endif
  38.  
  39. #ifndef SOM_ACF_DevServ_som_ListPart_xh
  40. #include "som_ListPart.xh"
  41. #endif
  42.  
  43. class ODMenuBar;
  44. class ODFocusSet;
  45.  
  46.  
  47. //==============================================================================
  48. // Globals
  49. //==============================================================================
  50.  
  51. struct ListPartGlobals; // forward
  52.  
  53. extern    ODUShort            gGlobalsUsageCount;
  54. extern    ListPartGlobals*    gGlobals;
  55.  
  56.  
  57. struct ListPartGlobals {
  58.     public:
  59.     ListPartGlobals();
  60.     ~ListPartGlobals() {}
  61.     
  62.     ODMenuBar*        fMenuBar;
  63.     ODFocusSet*        fUIFocusSet;    
  64.                 
  65.     ODTypeToken        fSelectionFocus;
  66.     ODTypeToken        fMenuFocus;
  67.     ODTypeToken        fModalFocus;
  68.     ODTypeToken        fFrameView;
  69.     ODTypeToken        fLargeIconView;
  70.     ODTypeToken        fSmallIconView;
  71.     ODTypeToken        fThumbnailView;
  72.     ODTypeToken        fMainPresentation;
  73.             
  74.     ODScriptCode    fEditorsScript;
  75.     ODLangCode        fEditorsLanguage;
  76.  
  77. // ES 11/13/95
  78.     ODTypeToken        fKeyFocus;
  79.     ODTypeToken        fScrollFocus;
  80. };
  81.  
  82.  
  83. inline ListPartGlobals::ListPartGlobals()
  84. {
  85.     fMenuBar        = kODNULL;
  86.     fUIFocusSet        = kODNULL;    
  87.                 
  88.     fSelectionFocus            = kODNullTypeToken;
  89.     fMenuFocus                = kODNullTypeToken;
  90.     fModalFocus                = kODNullTypeToken;
  91.     fFrameView                = kODNullTypeToken;
  92.     fLargeIconView            = kODNullTypeToken;
  93.     fSmallIconView            = kODNullTypeToken;
  94.     fThumbnailView            = kODNullTypeToken;
  95.     fMainPresentation        = kODNullTypeToken;
  96.             
  97.     fEditorsScript        = 0;
  98.     fEditorsLanguage    = 0;
  99.  
  100. // ES 11/13/95
  101.     fScrollFocus            = kODNullTypeToken;
  102.     fKeyFocus                = kODNullTypeToken;
  103. }
  104.  
  105. #endif